using System;

namespace Director.ViewModels
{
	abstract class AbstractDocVM : AbstractPaneVM
	{
		public abstract EDocId DocId { get; }

		protected AbstractDocVM(MainVM mainVM)
		{
			MainVM = mainVM;
		}

		public MainVM MainVM { get; set; }

		protected override void ExecuteCloseCommand(object obj)
		{
			MainVM.CloseDoc(this);
		}

		public override void Closed(object sender, EventArgs e)
		{
			
		}
	}
}